
import com.zbzbzzz.pojo.Person;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author ：zbzbzzz
 * @Date ：Created in 10:31 2021/2/25
 * @Description：_____
 * @Modified By：
 * @Version: X.X
 */
public class DemoMain {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("demo.xml");
		Person person = classPathXmlApplicationContext.getBean(Person.class);
		System.out.println(person);
//		A a = classPathXmlApplicationContext.getBean(A.class);
//		System.out.println(a);
	}
}
